package org.class2table.z_running_data;

import org.class2table.core.util.DataSourceUtil;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

public class DefaultExportData {

    public static final String savePath = ".\\export_tables\\";

    public static final List<String> exportTableList;

    static {
        exportTableList = Arrays.asList(
                "user"
        );
    }

    public static Connection exportConnection;

    static {
        try {
            exportConnection = DataSourceUtil.getConnection(
                    "jdbc:mysql://localhost:3306/db1?serverTimezone=UTC",
                    "root",
                    "123456"

            );
        } catch (ClassNotFoundException | SQLException e) {
            throw new RuntimeException("DefaultExportData create exportConnection failed!", e);
        }
    }

    public static final String dbName = "db1";

}
